function rxPower = CalculateRxPower(distance, exponent )
    referenceDistance=1;
    referenceLoss=46.677;
    txPower=-25+1;
    pathLossDb = 10 * exponent * log10 ( distance/referenceDistance);
    rxc = -referenceLoss - pathLossDb;
    rxPower = txPower + rxc +1;
end